package com.jims.master.modules.doctor.netHosptial.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
 * 入院通知Entity
 * @author xuey
 * @version 2017-05-15
 */
public class NetLiveRequisition extends DataEntity<NetLiveRequisition> {

	private static final long serialVersionUID = 1L;
	private String clinicId;		// 就诊记录ID/住院记录
	private String patientId;

	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}

	public String getSexStr() {
		return sexStr;
	}

	public void setSexStr(String sexStr) {
		this.sexStr = sexStr;
	}

	public String getBirthdayDateStr() {
		return birthdayDateStr;
	}

	public void setBirthdayDateStr(String birthdayDateStr) {
		this.birthdayDateStr = birthdayDateStr;
	}

	public String getHospitalizedDateStr() {
		return hospitalizedDateStr;
	}

	public void setHospitalizedDateStr(String hospitalizedDateStr) {
		this.hospitalizedDateStr = hospitalizedDateStr;
	}

	public String getAttackdateStr() {
		return attackdateStr;
	}

	public void setAttackdateStr(String attackdateStr) {
		this.attackdateStr = attackdateStr;
	}

	public String getNationStr() {
		return nationStr;
	}

	public void setNationStr(String nationStr) {
		this.nationStr = nationStr;
	}

	public String getVisitdept() {
		return visitdept;
	}

	public void setVisitdept(String visitdept) {
		this.visitdept = visitdept;
	}

	public String getHisloginname() {
		return hisloginname;
	}

	public void setHisloginname(String hisloginname) {
		this.hisloginname = hisloginname;
	}

	public String getCreateDateStr() {
		return createDateStr;
	}

	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}

	private String name;		// 姓名
	private String inputCode;		// 姓名拼音码
	private String sex;		// 性别
	private String age;		// 年龄
	private String nation;		// 名族
	private String nationality;		// 国籍
	private String marriage;		// 婚姻
	private String occupation;		// 职业
	private String bedNum;		// 床号
	private Date birthdayDate;		// 生日
	private String nativePlace;		// 籍贯
	private String zipCode;		// 邮编
	private String theIllness;		// 入院情况
	private String homeplace;		// 出生地
	private String address;		// 住址
	private String identity;		// 身份
	private String inFlag;		// 住院标识
	private String idNo;		// 身份证号
	private String phone;		// 电话
	private String contacts;		// 联系人
	private String contactsRelation;		// 联系人关系
	private String contactsAddress;		// 联系人地址
	private String contactsPhone;		// 联系人电话
	private String unitInContract;		// 合同单位
	private String chargeType;		// 费别
	private String hospitalizedDept;		// 入院科室
	private Date hospitalizedDate;		// 入院时间
	private String acceptingMoney;		// 预交住院费
	private Date attackdate;		// 发病时间
	private String hospitalSituation;		// 入院情况
	private String quarantine;		// 隔离情况
	private String diagnosis;		// 入院诊断
	private String diagnosisDesc;		// 门诊诊断
	private String attention;		// 注意事项
	private String orgId;		// 机构ID
	private String sexStr;
	private String birthdayDateStr;
	private String hospitalizedDateStr;
	private String attackdateStr;
	private String nationStr;
	private String visitdept;
	private String hisloginname;
	private String createDateStr;

	public NetLiveRequisition() {
		super();
	}

	public NetLiveRequisition(String id){
		super(id);
	}

	@Length(min=1, max=64, message="就诊记录ID/住院记录长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=1, max=200, message="姓名长度必须介于 1 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
    @Length(min=0, max=50, message="姓名拼音码长度必须介于 0 和 50 之间")
	public String getInputCode() {
		return inputCode;
	}

	@Override
    public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=50, message="年龄长度必须介于 0 和 50 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	
	@Length(min=0, max=3, message="名族长度必须介于 0 和 3 之间")
	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}
	
	@Length(min=0, max=1, message="国籍长度必须介于 0 和 1 之间")
	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	
	@Length(min=0, max=1, message="婚姻长度必须介于 0 和 1 之间")
	public String getMarriage() {
		return marriage;
	}

	public void setMarriage(String marriage) {
		this.marriage = marriage;
	}
	
	@Length(min=0, max=1, message="职业长度必须介于 0 和 1 之间")
	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}
	
	@Length(min=0, max=5, message="床号长度必须介于 0 和 5 之间")
	public String getBedNum() {
		return bedNum;
	}

	public void setBedNum(String bedNum) {
		this.bedNum = bedNum;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBirthdayDate() {
		return birthdayDate;
	}

	public void setBirthdayDate(Date birthdayDate) {
		this.birthdayDate = birthdayDate;
	}
	
	@Length(min=0, max=100, message="籍贯长度必须介于 0 和 100 之间")
	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}
	
	@Length(min=0, max=100, message="邮编长度必须介于 0 和 100 之间")
	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	
	@Length(min=0, max=1, message="入院情况长度必须介于 0 和 1 之间")
	public String getTheIllness() {
		return theIllness;
	}

	public void setTheIllness(String theIllness) {
		this.theIllness = theIllness;
	}
	
	@Length(min=0, max=200, message="出生地长度必须介于 0 和 200 之间")
	public String getHomeplace() {
		return homeplace;
	}

	public void setHomeplace(String homeplace) {
		this.homeplace = homeplace;
	}
	
	@Length(min=0, max=200, message="住址长度必须介于 0 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=1, message="身份长度必须介于 0 和 1 之间")
	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}
	
	@Length(min=0, max=1, message="住院标识长度必须介于 0 和 1 之间")
	public String getInFlag() {
		return inFlag;
	}

	public void setInFlag(String inFlag) {
		this.inFlag = inFlag;
	}
	
	@Length(min=0, max=21, message="身份证号长度必须介于 0 和 21 之间")
	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	
	@Length(min=0, max=20, message="电话长度必须介于 0 和 20 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=200, message="联系人长度必须介于 0 和 200 之间")
	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	
	@Length(min=0, max=1, message="联系人关系长度必须介于 0 和 1 之间")
	public String getContactsRelation() {
		return contactsRelation;
	}

	public void setContactsRelation(String contactsRelation) {
		this.contactsRelation = contactsRelation;
	}
	
	@Length(min=0, max=200, message="联系人地址长度必须介于 0 和 200 之间")
	public String getContactsAddress() {
		return contactsAddress;
	}

	public void setContactsAddress(String contactsAddress) {
		this.contactsAddress = contactsAddress;
	}
	
	@Length(min=0, max=20, message="联系人电话长度必须介于 0 和 20 之间")
	public String getContactsPhone() {
		return contactsPhone;
	}

	public void setContactsPhone(String contactsPhone) {
		this.contactsPhone = contactsPhone;
	}
	
	@Length(min=0, max=200, message="合同单位长度必须介于 0 和 200 之间")
	public String getUnitInContract() {
		return unitInContract;
	}

	public void setUnitInContract(String unitInContract) {
		this.unitInContract = unitInContract;
	}
	
	@Length(min=0, max=1, message="费别长度必须介于 0 和 1 之间")
	public String getChargeType() {
		return chargeType;
	}

	public void setChargeType(String chargeType) {
		this.chargeType = chargeType;
	}
	
	@Length(min=0, max=64, message="入院科室长度必须介于 0 和 64 之间")
	public String getHospitalizedDept() {
		return hospitalizedDept;
	}

	public void setHospitalizedDept(String hospitalizedDept) {
		this.hospitalizedDept = hospitalizedDept;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getHospitalizedDate() {
		return hospitalizedDate;
	}

	public void setHospitalizedDate(Date hospitalizedDate) {
		this.hospitalizedDate = hospitalizedDate;
	}
	
	@Length(min=0, max=10, message="预交住院费长度必须介于 0 和 10 之间")
	public String getAcceptingMoney() {
		return acceptingMoney;
	}

	public void setAcceptingMoney(String acceptingMoney) {
		this.acceptingMoney = acceptingMoney;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAttackdate() {
		return attackdate;
	}

	public void setAttackdate(Date attackdate) {
		this.attackdate = attackdate;
	}
	
	@Length(min=0, max=1, message="入院情况长度必须介于 0 和 1 之间")
	public String getHospitalSituation() {
		return hospitalSituation;
	}

	public void setHospitalSituation(String hospitalSituation) {
		this.hospitalSituation = hospitalSituation;
	}
	
	@Length(min=0, max=1, message="隔离情况长度必须介于 0 和 1 之间")
	public String getQuarantine() {
		return quarantine;
	}

	public void setQuarantine(String quarantine) {
		this.quarantine = quarantine;
	}
	
	@Length(min=0, max=500, message="入院诊断长度必须介于 0 和 500 之间")
	public String getDiagnosis() {
		return diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}
	
	@Length(min=0, max=500, message="门诊诊断长度必须介于 0 和 500 之间")
	public String getDiagnosisDesc() {
		return diagnosisDesc;
	}

	public void setDiagnosisDesc(String diagnosisDesc) {
		this.diagnosisDesc = diagnosisDesc;
	}
	
	@Length(min=0, max=500, message="注意事项长度必须介于 0 和 500 之间")
	public String getAttention() {
		return attention;
	}

	public void setAttention(String attention) {
		this.attention = attention;
	}
	
	@Override
    @Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	@Override
    public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
}